<script>
export default {
  onLaunch: function () {
    console.log("App Launch");
    // nvue 引入字体方式
    const domModule = weex.requireModule("dom");
    domModule.addRule("fontFace", {
      fontFamily: "iconfont",
      src: "url('http://at.alicdn.com/t/font_1859985_7mxozsfdvib.ttf')",
    });

    // 监听中间按钮的点击事件
    uni.onTabBarMidButtonTap(() => {
      console.log("中间按钮被点击");
    });
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style>
/*每个页面公共css */
@import url("/common/free.css");
@import url("/common/common.css");
/* #ifndef APP-PlUS-NVUE */
@import url("/common/icon.css");
/* #endif */
</style>
